<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>点球网-查看下注</title>
		<link href="css/css.css" rel="stylesheet" type="text/css" />
		<link type="text/css" href="${ctx}/css/jquery.ui.all.css" rel="stylesheet" />
		<script type="text/javascript" src="${ctx}/js/jquery.js"></script>
		<script type="text/javascript" src="${ctx}/js/jquery.ui.core.js"></script>
		<script type="text/javascript" src="${ctx}/js/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="${ctx}/js/jquery.ui.accordion.js"></script>
		<script type="text/javascript">
			$(function() {
				$("#accordion").accordion();
			});
		</script>
	</head>
<body>
	<div id="head">
		<div class="topnav">
			<ul>
			<li class="tn1"><a href="/">主页</a></li>
			<li class="tn2"><a href="#">买彩</a></li>
			<li class="tn3"><a href="#">提彩</a></li>
			<li class="tn4"><a href="#">查账</a></li>
			<li class="tn5"><a href="#">客服</a></li>
			<li class="tn6"><a href="#">规则</a></li>
			<li class="tn7"><a href="#">注册</a></li>
			<li class="tn8"><a href="#">声明</a></li>
			<li class="tn9"><a href="#">刷新</a></li>
			<li class="right"><a href="#">齐达内，账户彩金：1000元，冻结彩金：200元。</a></li>
			</ul>
		</div>
		<div class="logo">
			<div class="cnav">
				<ul>
				<li class="cn1"><a href="${ctx}/create-match!create.action">创建比赛</a></li>
				<li class="cn2"><a href="${ctx}/match!listMatchDefault.action">查看比赛</a></li>
				<li class="cn3"><a href="${ctx}/bet!bet.action">用户下注</a></li>
				<li class="cn4"><a href="${ctx}/bet!listBet.action">查看下注</a></li>
				<li class="cn5"><a href="${ctx}/user-follow-clubs!showUserFollowClubs.action">关注球队</a></li>
				</ul>
			</div>
		</div>
	<div class="message">最新消息，本站注册用户可申请为“超级彩民”用户，超级彩民用户拥有高额返彩的机会。</div>
	</div>
	
	<div id="center">
		<div class="here">
			<span></span>您现在的位置：
			<a href="${ctx}/user-follow-clubs!showUserFollowClubs.action">点球网</a> &raquo; 
			<a href="#">查看下注球队</a>
		</div>
		
		<div class="cbody">
			<div id="accordion">
			<h3><a href="#" style="font-size: 12px">未完成比赛</a></h3>
				<div>
					<table width="100%" border="0" cellpadding="1" cellspacing="1">
						<tr class="ckxz">
							<td style="font-size: 12px">联赛名称</td>
							<td style="font-size: 12px">比赛时间</td>
							<td style="font-size: 12px">盘口</td>
							<td style="font-size: 12px">主队</td>
							<td style="font-size: 12px">主队水率</td>
							<td style="font-size: 12px">比分</td>
							<td style="font-size: 12px">客队</td>
							<td style="font-size: 12px">客队水率</td>
							<td style="font-size: 12px">下注球队</td>
							<td style="font-size: 12px">下注金额</td>
							<td style="font-size: 12px">下注时间</td>
						</tr>
						<c:forEach items="${unfinishedMatchList}" var="unfinishedMatch">
						<c:forEach items="${unfinishedMatchHandicapList}" var="unfinishedMatchHandicap">
						<c:forEach items="${unfinishedMatchUserBetList}" var="unfinishedMatchUserBet">
						<tr class="xzlb">
							<td style="font-size: 12px">${unfinishedMatch.dqLeagues.lgNameSc }</td>
							<td style="font-size: 12px">${unfinishedMatch.mthDate }</td>
							<td style="font-size: 12px">${unfinishedMatchHandicap.dqHandicapType.description }</td>
							<td style="font-size: 12px">${unfinishedMatch.dqClubsByHomeClbId.clbSc }</td>
							<td style="font-size: 12px">${unfinishedMatchHandicap.homeClbRate }</td>
							<td style="font-size: 12px">${unfinishedMatch.homeScore }:${unfinishedMatch.awayScore }</td>
							<td style="font-size: 12px">${unfinishedMatch.dqClubsByAwayClbId.clbSc  }</td>
							<td style="font-size: 12px">${unfinishedMatchHandicap.awayClbRate }</td>
							<c:if test="${unfinishedMatchUserBet.clbBetted == 0}">
								<td style="font-size: 12px">${unfinishedMatchUserBet.dqMatch.dqClubsByHomeClbId.clbSc }</td>
							</c:if>
							<c:if test="${unfinishedMatchUserBet.clbBetted == 1}">
								<td style="font-size: 12px">${unfinishedMatchUserBet.dqMatch.dqClubsByAwayClbId.clbSc }</td>
							</c:if>
							<td style="font-size: 12px">${unfinishedMatchUserBet.stake }</td>
							<td style="font-size: 12px">${unfinishedMatchUserBet.betDate }</td>
						</tr>
						</c:forEach>
						</c:forEach>
						</c:forEach>
					</table>
				</div>
				<h3><a href="#" style="font-size: 12px">已完成比赛</a></h3>
				<div>
					<table width="100%" border="0" cellpadding="1" cellspacing="1">
						<tr class="ckxz">
							<td style="font-size: 12px">联赛名称</td>
							<td style="font-size: 12px">比赛时间</td>
							<td style="font-size: 12px">盘口</td>
							<td style="font-size: 12px">主队</td>
							<td style="font-size: 12px">主队水率</td>
							<td style="font-size: 12px">比分</td>
							<td style="font-size: 12px">客队</td>
							<td style="font-size: 12px">客队水率</td>
							<td style="font-size: 12px">下注球队</td>
							<td style="font-size: 12px">下注金额</td>
							<td style="font-size: 12px">结果</td>
							<td style="font-size: 12px">下注时间</td>
						</tr>
						<c:forEach items="${finishedMatchList}" var="finishedMatch">
						<c:forEach items="${finishedMatchHandicapList}" var="finishedMatchHandicap">
						<c:forEach items="${finishedMatchUserBetList}" var="finishedMatchUserBet">
						<tr class="xzlb">
							<td style="font-size: 12px">${finishedMatch.dqLeagues.lgNameSc }</td>
							<td style="font-size: 12px">${finishedMatch.mthDate }</td>
							<td style="font-size: 12px">${finishedMatchHandicap.dqHandicapType.description }</td>
							<td style="font-size: 12px">${finishedMatch.dqClubsByHomeClbId.clbSc }</td>
							<td style="font-size: 12px">${finishedMatchHandicap.homeClbRate }</td>
							<td style="font-size: 12px">${finishedMatch.homeScore }:${finishedMatch.awayScore }</td>
							<td style="font-size: 12px">${finishedMatch.dqClubsByAwayClbId.clbSc  }</td>
							<td style="font-size: 12px">${finishedMatchHandicap.awayClbRate }</td>
							<c:if test="${finishedMatchUserBet.clbBetted == 0}">
								<td style="font-size: 12px">${finishedMatchUserBet.dqMatch.dqClubsByHomeClbId.clbSc }</td>
							</c:if>
							<c:if test="${finishedMatchUserBet.clbBetted == 1}">
								<td style="font-size: 12px">${finishedMatchUserBet.dqMatch.dqClubsByAwayClbId.clbSc }</td>
							</c:if>
							<td>${finishedMatchUserBet.stake }</td>
							<td>${finishedMatchUserBet.result }</td>
							<td>${finishedMatchUserBet.betDate }</td>
						</tr>
						</c:forEach>
						</c:forEach>
						</c:forEach>
					</table>
				</div>
			</div>
		</div>
	</div>
	
	<div id="footer">
		<div class="fnav">
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a> | 
			<a href="#">关于我们</a>
		</div>
		<div class="bq">Copyright ? 2010 点球网 保留所有版权。</div>
	</div>
</body>
</html>
